/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mto.module.karaoke.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link UserSongs}.
 * </p>
 *
 * @author    vuonglm
 * @see       UserSongs
 * @generated
 */
public class UserSongsWrapper implements UserSongs, ModelWrapper<UserSongs> {
	public UserSongsWrapper(UserSongs userSongs) {
		_userSongs = userSongs;
	}

	public Class<?> getModelClass() {
		return UserSongs.class;
	}

	public String getModelClassName() {
		return UserSongs.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("userSongId", getUserSongId());
		attributes.put("userId", getUserId());
		attributes.put("commentNumber", getCommentNumber());
		attributes.put("listenNumber", getListenNumber());
		attributes.put("mark", getMark());
		attributes.put("recodingUrl", getRecodingUrl());
		attributes.put("description", getDescription());
		attributes.put("isShow", getIsShow());
		attributes.put("avatar", getAvatar());
		attributes.put("createDate", getCreateDate());
		attributes.put("songId", getSongId());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long userSongId = (Long)attributes.get("userSongId");

		if (userSongId != null) {
			setUserSongId(userSongId);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		Integer commentNumber = (Integer)attributes.get("commentNumber");

		if (commentNumber != null) {
			setCommentNumber(commentNumber);
		}

		Integer listenNumber = (Integer)attributes.get("listenNumber");

		if (listenNumber != null) {
			setListenNumber(listenNumber);
		}

		Integer mark = (Integer)attributes.get("mark");

		if (mark != null) {
			setMark(mark);
		}

		String recodingUrl = (String)attributes.get("recodingUrl");

		if (recodingUrl != null) {
			setRecodingUrl(recodingUrl);
		}

		String description = (String)attributes.get("description");

		if (description != null) {
			setDescription(description);
		}

		Boolean isShow = (Boolean)attributes.get("isShow");

		if (isShow != null) {
			setIsShow(isShow);
		}

		String avatar = (String)attributes.get("avatar");

		if (avatar != null) {
			setAvatar(avatar);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Long songId = (Long)attributes.get("songId");

		if (songId != null) {
			setSongId(songId);
		}
	}

	/**
	* Returns the primary key of this user songs.
	*
	* @return the primary key of this user songs
	*/
	public long getPrimaryKey() {
		return _userSongs.getPrimaryKey();
	}

	/**
	* Sets the primary key of this user songs.
	*
	* @param primaryKey the primary key of this user songs
	*/
	public void setPrimaryKey(long primaryKey) {
		_userSongs.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the user song ID of this user songs.
	*
	* @return the user song ID of this user songs
	*/
	public long getUserSongId() {
		return _userSongs.getUserSongId();
	}

	/**
	* Sets the user song ID of this user songs.
	*
	* @param userSongId the user song ID of this user songs
	*/
	public void setUserSongId(long userSongId) {
		_userSongs.setUserSongId(userSongId);
	}

	/**
	* Returns the user ID of this user songs.
	*
	* @return the user ID of this user songs
	*/
	public long getUserId() {
		return _userSongs.getUserId();
	}

	/**
	* Sets the user ID of this user songs.
	*
	* @param userId the user ID of this user songs
	*/
	public void setUserId(long userId) {
		_userSongs.setUserId(userId);
	}

	/**
	* Returns the user uuid of this user songs.
	*
	* @return the user uuid of this user songs
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _userSongs.getUserUuid();
	}

	/**
	* Sets the user uuid of this user songs.
	*
	* @param userUuid the user uuid of this user songs
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_userSongs.setUserUuid(userUuid);
	}

	/**
	* Returns the comment number of this user songs.
	*
	* @return the comment number of this user songs
	*/
	public int getCommentNumber() {
		return _userSongs.getCommentNumber();
	}

	/**
	* Sets the comment number of this user songs.
	*
	* @param commentNumber the comment number of this user songs
	*/
	public void setCommentNumber(int commentNumber) {
		_userSongs.setCommentNumber(commentNumber);
	}

	/**
	* Returns the listen number of this user songs.
	*
	* @return the listen number of this user songs
	*/
	public int getListenNumber() {
		return _userSongs.getListenNumber();
	}

	/**
	* Sets the listen number of this user songs.
	*
	* @param listenNumber the listen number of this user songs
	*/
	public void setListenNumber(int listenNumber) {
		_userSongs.setListenNumber(listenNumber);
	}

	/**
	* Returns the mark of this user songs.
	*
	* @return the mark of this user songs
	*/
	public int getMark() {
		return _userSongs.getMark();
	}

	/**
	* Sets the mark of this user songs.
	*
	* @param mark the mark of this user songs
	*/
	public void setMark(int mark) {
		_userSongs.setMark(mark);
	}

	/**
	* Returns the recoding url of this user songs.
	*
	* @return the recoding url of this user songs
	*/
	public java.lang.String getRecodingUrl() {
		return _userSongs.getRecodingUrl();
	}

	/**
	* Sets the recoding url of this user songs.
	*
	* @param recodingUrl the recoding url of this user songs
	*/
	public void setRecodingUrl(java.lang.String recodingUrl) {
		_userSongs.setRecodingUrl(recodingUrl);
	}

	/**
	* Returns the description of this user songs.
	*
	* @return the description of this user songs
	*/
	public java.lang.String getDescription() {
		return _userSongs.getDescription();
	}

	/**
	* Sets the description of this user songs.
	*
	* @param description the description of this user songs
	*/
	public void setDescription(java.lang.String description) {
		_userSongs.setDescription(description);
	}

	/**
	* Returns the is show of this user songs.
	*
	* @return the is show of this user songs
	*/
	public boolean getIsShow() {
		return _userSongs.getIsShow();
	}

	/**
	* Returns <code>true</code> if this user songs is is show.
	*
	* @return <code>true</code> if this user songs is is show; <code>false</code> otherwise
	*/
	public boolean isIsShow() {
		return _userSongs.isIsShow();
	}

	/**
	* Sets whether this user songs is is show.
	*
	* @param isShow the is show of this user songs
	*/
	public void setIsShow(boolean isShow) {
		_userSongs.setIsShow(isShow);
	}

	/**
	* Returns the avatar of this user songs.
	*
	* @return the avatar of this user songs
	*/
	public java.lang.String getAvatar() {
		return _userSongs.getAvatar();
	}

	/**
	* Sets the avatar of this user songs.
	*
	* @param avatar the avatar of this user songs
	*/
	public void setAvatar(java.lang.String avatar) {
		_userSongs.setAvatar(avatar);
	}

	/**
	* Returns the create date of this user songs.
	*
	* @return the create date of this user songs
	*/
	public java.util.Date getCreateDate() {
		return _userSongs.getCreateDate();
	}

	/**
	* Sets the create date of this user songs.
	*
	* @param createDate the create date of this user songs
	*/
	public void setCreateDate(java.util.Date createDate) {
		_userSongs.setCreateDate(createDate);
	}

	/**
	* Returns the song ID of this user songs.
	*
	* @return the song ID of this user songs
	*/
	public long getSongId() {
		return _userSongs.getSongId();
	}

	/**
	* Sets the song ID of this user songs.
	*
	* @param songId the song ID of this user songs
	*/
	public void setSongId(long songId) {
		_userSongs.setSongId(songId);
	}

	public boolean isNew() {
		return _userSongs.isNew();
	}

	public void setNew(boolean n) {
		_userSongs.setNew(n);
	}

	public boolean isCachedModel() {
		return _userSongs.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_userSongs.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _userSongs.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _userSongs.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_userSongs.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _userSongs.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_userSongs.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new UserSongsWrapper((UserSongs)_userSongs.clone());
	}

	public int compareTo(com.mto.module.karaoke.model.UserSongs userSongs) {
		return _userSongs.compareTo(userSongs);
	}

	@Override
	public int hashCode() {
		return _userSongs.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.mto.module.karaoke.model.UserSongs> toCacheModel() {
		return _userSongs.toCacheModel();
	}

	public com.mto.module.karaoke.model.UserSongs toEscapedModel() {
		return new UserSongsWrapper(_userSongs.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _userSongs.toString();
	}

	public java.lang.String toXmlString() {
		return _userSongs.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_userSongs.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public UserSongs getWrappedUserSongs() {
		return _userSongs;
	}

	public UserSongs getWrappedModel() {
		return _userSongs;
	}

	public void resetOriginalValues() {
		_userSongs.resetOriginalValues();
	}

	private UserSongs _userSongs;
}